@prefix-cls: ~'inbiz-search-engine';
@prefix-cls-drawer: ~'inbiz-search-engine-drawer';
.@{prefix-cls},
.@{prefix-cls-drawer} {
  .customFileSize {
    display: flex;
    align-items: center;

    .toFileSize {
      margin: 0 10px;
    }

    .sizeunit {
      margin-left: 10px;
    }

    .ant-input-number {
      flex: 1;
      width: 0;
    }
  }

  .ant-form-item {
    overflow: hidden;
  }

  .ant-divider-with-text {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .ant-divider-inner-text {
    padding: 0 40px;
    color: #666;
    font-weight: normal;
    font-size: 14px;
  }

  .advance-form-tabs {
    .ant-tabs-nav {
      align-items: flex-start;

      &::before {
        display: none;
      }
    }

    .ant-tabs-tab {
      padding-top: 0;
    }

    // .ant-tabs-tab + .ant-tabs-tab {
    //   margin-left: 40px;
    // }
    .ant-tabs-tab-btn {
      color: var(--inbiz-color-text);
      font-size: 14px;
    }

    .ant-tabs-tab-active {
      .ant-tabs-tab-btn {
        color: var(--inbiz-color-primary);
      }
    }

    .render-form-wraper {
      .ant-form-item-label {

        margin-right: 15px;
        line-height: 32px;
        white-space: normal;
        text-align: left;

        .ant-form-item-no-colon {
          display: block;
          width: 83px;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }
      }


      .remove-button {
        margin-left: 11px;
        color: #fff;
        cursor: pointer;

        span {
          margin-right: 1px;
          padding: 2px;
          font-size: 10px;
          background-color: #ccc;
          border-radius: 50%;

          &:hover {
            background-color: #e71e10;
          }
        }
      }
    }
  }

  .advanced-search-body {
    display: flex;
    justify-content: space-between;
    min-height: 433px;

    .render-form-wrapper {
      max-height: 375px;
      padding-right: 20px;
      // max-height: 218px;
      overflow-y: auto;

      .ant-form-item-label label {
        color: var(--inbiz-color-heading);
      }

      .ant-form-item {
        margin-top: 20px;
        margin-bottom: 0;

        &:first-child {
          margin-top: 0;
        }
      }
    }

    .advance-form {
      position: relative;
      flex: 1;
      margin-right: 60px;
      padding-right: 30px;
      // &::after {
      //   content: "";
      //   border-right: 1px solid #eeeeee;
      //   height: 248px;
      //   position: absolute;
      //   top: 0;
      //   right: 0;
      // }
      border-right: 1px solid #eee;
    }

    .my-tag-body {
      width: 230px;
    }
  }

  .advanced-bottom-btns {
    display: flex;
    margin-top: 20px;

    .schema-form-button {
      flex: 1;
      margin-right: 75px;
      text-align: right;

      button {
        margin-left: 15px;

        &.ant-btn-default {
          color: var(--inbiz-color-heading);
        }
      }
    }

    .advanced-drawer-back {
      width: 280px;

      button {
        margin-left: 60px;
      }
    }
  }

  .more-conditions {
    z-index: 1;
    // margin-right: 45px;
    color: var(--ant-primary-color);
    font-size: 14px;
    text-align: right;
    padding-bottom: 30px;
    .anticon {
      margin-right: 7px;
    }

    p {
      display: inline-block;
      margin-bottom: 0;
      cursor: pointer;

      &:hover {
        opacity: 0.6;
      }
    }
  }

  // 我的标签
  .my-search-tag-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    max-height: 242px;

    .tag-item-title {
      padding-bottom: 30px;
      color: var(--inbiz-color-heading);
      font-size: 14px;
    }

    .tag-list {
      flex: 1 1 0;
      overflow: auto;

      .tag-item {
        display: flex;
        align-items: center;
        height: 32px;
        margin-bottom: 10px;
        cursor: pointer;

        .tag-action-box {
          opacity: 0;
        }

        &:hover .tag-action-box {
          opacity: 1;
        }

        .tag-item-label {
          min-width: 122px;
          max-width: 122px;
          overflow: hidden;
          color: var(--inbiz-color-secondary-text);
          white-space: nowrap;
          text-overflow: ellipsis;

          &:hover {
            color: var(--inbiz-color-primary);
          }
        }

        .tag-item-input {
          width: 208px;
          height: 32px;
          padding-left: 10px;
          background-color: #fff;
          border: solid 1px var(--inbiz-color-primary);
          border-radius: 2px;
          outline: none;
        }

        .anticon {
          margin-left: 10px;
          color: #ccc;

          &:hover {
            color: #e71e10;
          }
        }

        .tag-item-setting:hover {
          color: var(--inbiz-color-primary);
        }

        .tag-item-delete {
          margin-left: 10px;
          padding: 2px;
          color: #fff;
          font-size: 10px;
          background-color: #ccc;
          border-radius: 50%;

          &:hover {
            color: #fff;
            background-color: #e71e10;
          }
        }
      }
    }
  }

  &-more-condition-container {
    width: 560px;
    height: 324px;
    border: 1px solid #ddd;
    border-radius: 2px;
    display: flex;

    .left,
    .right {
      // display: inline-block;
      height: 100%;
      padding: 10px 0;
      overflow-y: auto;
    }

    .left {
      width: 236px;
      border-right: 1px solid #ddd;
    }

    .right {
      width: 320px;
    }

    .condition-item {
      position: relative;
      height: 38px;
      padding: 0 16px;
      overflow: hidden;
      color: var(--inbiz-color-text);
      font-size: var(--inbiz-font-size-base);
      line-height: 38px;
      white-space: nowrap;
      text-overflow: ellipsis;

      label span:last-child {
        color: var(--inbiz-color-text);
        font-size: var(--inbiz-font-size-base);
      }

      &:hover,
      &.selected {
        color: var(--ant-primary-color);
        cursor: pointer;

        &.extra::after {
          border-left-color: var(--ant-primary-color);
        }
      }

      &.extra {
        padding-right: 26px;

        &::after {
          position: absolute;
          top: 50%;
          right: 16px;
          border-top: 5px solid transparent;
          border-bottom: 5px solid transparent;
          border-left: 7px solid #aaa;
          transform: translateY(-50%);
          content: '';
        }
      }
    }
  }
}
